/**
 * Created by admin on 2016/8/11.
 */
var home = function () {
    /*初始化banner轮播*/
    var bannerInit = function () {
            var mySwiper = new Swiper('.swiper-container', {
                autoplay:2000,
                loop:true,
                pagination : '.swiper-pagination'
            });
    };


    /*进入查询页面*/
    var goSearch = function () {
        $('input').on('click focus',function () {
            window.location.href = "search";
        })
    };


    return{
        init:function () {
            bannerInit();
            goSearch();
        }
    }
}();